<!--header str-->
{template "common","header"}
<!--header end-->
<!--wrap_activity str-->
<div class="wrap" id="wrap">
	<table>
		<tr>
			<td class="item_table_left">
				<br/><br/>
				{template "common","left_menu"}
			</td>
			<td class="item_table_right">
				<div class="wrap_main">
					<div class="bullet more_height">
						<div class="bullet_title"><label class="user_detail_title heiti">个人信息</label></div>
						<div class="bullet_menu more_bottom">
							<label class="user_detail_menu">&lt;&lt;修改资料</label>
						</div>
					</div>
					<hr>
					<div class="content_title">{$info[title]}</div>
					<div class="content">
						<form action="/index.php?m=hchmember&c=detail&a=userinfo" method="post"  enctype="multipart/form-data">
							<table class="user_detail">
                                <tr>
                                    <th>会员级别</th>
                                    <td>
                                        <span style="color:orange;">{$userinfo[group_name]}</span>&nbsp;&nbsp;&nbsp;
                                        {if $userinfo[upgrade]}
                                            <span style="color:red;">升级审核中...</span>
                                        {else}
                                            <a style="color:red;" href="/index.php?m=hchmember&c=detail&a=userinfo&upgrade=1">会员升级</a>
                                        {/if}
                                    </td>
                                </tr>
                                <tr>
                                    <th>头像</th>
                                    <td>
                                        {if $userinfo[avatar]}
                                            <img style="height:100px;width:auto;" src="{$userinfo[avatar]}">
                                        {else}
                                            <img style="height:100px;width:auto;" src="http://demo.zetadata.com.cn:8001/statics/images/member/nophoto.gif">
                                        {/if}
                                        <input type="file" name="avatar">
                                    </td>
                                </tr>
								<tr>
									<th>姓名</th>
									<td><input placeholder="姓名" type="text" value="{$userinfo[nickname]}" name="item[nickname]" id="nickname"> </td>
								</tr>
								<tr>
									<th>出生日期</th>
									<td>
										<select name="year" id="year">
										{loop $years $y}
											<option value="{$y}" {if $y==$user_year} selected="selected" {/if}>{$y}</option>
										{/loop}
										</select>
										年
										<select name="month" id="month">
										{loop $month $m}
											<option value="{$m}" {if $m==$user_month} selected="selected" {/if}>{$m}</option>
										{/loop}
										</select>
										月
									</td>
								</tr>
								<tr>
									<th>性别</th>
									<td>
										<input type="radio" value="0" name="detail[sex]" id="sex" {if $detail['sex']==0} checked="checked" {/if}>保密
										<input type="radio" value="1" name="detail[sex]" id="sex" {if $detail['sex']==1} checked="checked" {/if}>男
										<input type="radio" value="2" name="detail[sex]" id="sex" {if $detail['sex']==2} checked="checked" {/if}>女
									</td>
								</tr>
								<tr>
									<th>绑定手机</th>
									<td><input type="text" value="{$userinfo[mobile]}" name="item[mobile]" id="mobile"> </td>
								</tr>
								<tr>
									<th>Email</th>
									<td><input type="text" value="{$userinfo[email]}" name="item[email]" id="email"> </td>
								</tr>
								<tr>
									<th>公司</th>
									<td><input type="text" value="{$detail[company]}" name="detail[company]" id="company"> </td>
								</tr>
								<tr>
									<th>公司地址</th>
									<td><input type="text" value="{$detail[company_addr]}" name="detail[company_addr]" id="company_addr"> </td>
								</tr>
								<tr>
									<th>微博</th>
									<td><input type="text" value="{$detail[weibo]}" name="detail[weibo]" id="weibo"> </td>
								</tr>
								<tr>
									<th>QQ</th>
									<td><input type="text" value="{$detail[qq]}" name="detail[qq]" id="qq"> </td>
								</tr>
								<tr>
									<th>自我介绍</th>
									<td>										
										<textarea rows="5" cols="50" name="detail[self_intro]">{$detail[self_intro]}</textarea>
									</td>
								</tr>
								<tr>
									<th align="left">
									</th>
									<td>	
										<input type="submit" name="dosubmit" class="submit" value="修改" width="200" height="30"/>
										<input type="hidden" name="m" value="hchmember">
										<input type="hidden" name="c" value="detail">
										<input type="hidden" name="a" value="userinfo">
									</td>
								</tr>
							</table>
						</form>
						<br style="clear: both;">
					</div>
				</div>
			</td>
		</tr>
	</table>


	
</div>
<!--wrap end-->
<!--footer str-->
{template "common","footer"}
<!--footer end-->
<script type="text/javascript">  
  if( !('placeholder' in document.createElement('input')) ){  
   
    $('input[placeholder],textarea[placeholder]').each(function(){   
      var that = $(this),   
      text= that.attr('placeholder');   
      if(that.val()===""){   
        that.val(text).addClass('placeholder');   
      }   
      that.focus(function(){   
        if(that.val()===text){   
          that.val("").removeClass('placeholder');   
        }   
      })   
      .blur(function(){   
        if(that.val()===""){   
          that.val(text).addClass('placeholder');   
        }   
      })   
      .closest('form').submit(function(){   
        if(that.val() === text){   
          that.val('');   
        }   
      });   
    });   
  }  
</script>
</body>
</html>